package com.cash.loan.common.entity;

import java.io.Serializable;

/**
 * 登录之后redis中存放的用户信息
 *
 * @author Administrator
 * @Date 2018-07-05 13:29
 */
public class UserInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 用户表id
     */
    private Long id;

    /**
     * 登录表id
     */
    private Long userId;

    /**
     * 用户手机号
     */
    private String phone;

    public UserInfo() {
    }

    public UserInfo(Long id, Long userId, String phone) {
        this.id = id;
        this.userId = userId;
        this.phone = phone;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    @Override
    public String toString() {
        return "UserInfo{" +
                "id=" + id +
                ", userId=" + userId +
                ", phone='" + phone + '\'' +
                '}';
    }
}
